package org.redmagic.exception;

import java.util.HashSet;
import java.util.Set;

public class UnresolvablePlaceholderException extends RedMagicException {

    private static final long serialVersionUID = -3676395389914736467L;

    private final Set<String> unresolvedPlaceholders;
    
    public UnresolvablePlaceholderException(Set<String> unresolvedPlaceholders) {
        super();
        this.unresolvedPlaceholders = new HashSet<String>(unresolvedPlaceholders);
    }

    public UnresolvablePlaceholderException(String message, Throwable cause, Set<String> unresolvedPlaceholders) {
        super(message, cause);
        this.unresolvedPlaceholders = new HashSet<String>(unresolvedPlaceholders);
    }

    public UnresolvablePlaceholderException(String message, Set<String> unresolvedPlaceholders) {
        super(message);
        this.unresolvedPlaceholders = new HashSet<String>(unresolvedPlaceholders);
    }

    public UnresolvablePlaceholderException(Throwable cause, Set<String> unresolvedPlaceholders) {
        super(cause);
        this.unresolvedPlaceholders = new HashSet<String>(unresolvedPlaceholders);
    }

    public Set<String> getUnresolvedPlaceholders() {
        return unresolvedPlaceholders;
    }

}
